package com.longyu12.studydemo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
// 引入controller依赖
@RestController
public class HelloController {

    @RequestMapping("/hello") // 路由
    public String hello() {

        return "hello java";
    }
}
